/*
 *  Copyright (C) 2011 Hatsites
 * 
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.myorg.shr.gui.io.finder;

/**
 *
 * @author Hatsites
 *
 * email: Hatsites_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 */

final public class FinderResShr extends FinderResAbs{

    final static private FinderResShr _INSTANCE = new FinderResShr();

    final public static String STR_EXTENSION_PNG = "png";
    final public static String STR_EXTENSION_GIF = "gif";

    final static public String[] STR_CHECKED = {"oxygenteam", STR_EXTENSION_PNG, "checked"};
    final static public String[] STR_CANCEL = {"oxygenteam", STR_EXTENSION_PNG, "unchecked"};
    final static public String[] STR_PRINT = {"oxygenteam", STR_EXTENSION_PNG, "print"};
    final public static String[] STR_HELP = {"oxygenteam", STR_EXTENSION_PNG, "help"};
    final static public String[] STR_CLOSE_WINDOW = {"gnomeicon", STR_EXTENSION_PNG, "exit"};
    final static public String[] STR_CLOSE = {"gnomeicon", STR_EXTENSION_PNG, "exit"};
    final static public String[] STR_HOME =  {"gnomeicon", STR_EXTENSION_PNG, "home"};
    final static public String[] STR_TOOLS = {"oxygenteam", STR_EXTENSION_PNG, "hammer"};
    final static public String[] STR_DELETE = {"oxygenteam", STR_EXTENSION_PNG, "trash"};
    final static public String[] STR_WEB_COMPONENT = {"oxygenteam", STR_EXTENSION_PNG, "internet"};
    final static public String[] STR_START = {"oxygenteam", STR_EXTENSION_PNG, "start"};
    final public static String[] STR_NEW_USER = {"oxygenteam", STR_EXTENSION_PNG, "new_user"};
    final public static String[] STR_NEW_ITEM = {"oxygenteam", STR_EXTENSION_PNG, "new_fiche"};
    final static public String[] STR_ABOUT = {"oxygenteam", STR_EXTENSION_PNG, "about"};

    static public javax.swing.ImageIcon s_getIcon(String[] strsFileName, Integer size){
        ClassLoader cld = _INSTANCE.getClass().getClassLoader();
        String strPathSys =
                FinderResAbs._STR_PATH_PREFIX_SYS_ +
                java.io.File.separator +
                "shr"
                ;
        String strPathJar =
                FinderResAbs._STR_PATH_PREFIX_JAR +
                "/" +
                "shr"
                ;

        String strFileSuffix =  "_" + size.toString() + "." + strsFileName[strsFileName.length-2];

        return FinderResAbs._s_getIcon_(
                cld,
                strsFileName,
                strFileSuffix,
                strPathSys,
                strPathJar);
    }
}

